<?php
	header("Content-type:text/html;charset=utf-8");
	
	$tel = $REQUEST["Teld"];

	
 header("Content-type:text/html;charset=utf-8");
    //连接数据库
    $conn = mysql_connect("localhost","root","root");
    //选择数据库
    mysql_select_db("2010");
    //获取请求过来的数据
	$tel = $REQUEST["Teld"];
    $reslut = mysql_query("select * from phone where Teld = '$tel'");
    
    $rows = mysql_num_rows($reslut);
    
    if($rows == 1){
        echo "1";
    }else{
        echo "0";
    }

	//4.关闭资源de
	mysql_close($conn);
?>
